<div class="container">

    <?php echo $this->element('page_header'); ?>

    <div class="row">
        <div class="span2">
            <?php echo $this->element('admin/navigation'); ?>
        </div>
        <div class="span10">

            <div class="widget">

                <div class="widget-header">
                    <h3>
                        <i class="icon-th-list"></i>
                        Create New Group, Modify Existing Group, Delete Group, Assign Modules to Group.
                    </h3>
                </div> <!-- /widget-header -->

                <div class="widget-content">
                    <table id="flex" style="display:none;"></table>
                </div> <!-- /widget-content -->

            </div> <!-- /widget -->

        </div>

    </div> <!-- /.row -->

</div> <!-- /.container -->

<!-- URLs -->
<input type="hidden" id="table-url" value="<?php echo $this->Html->url(array('controller' => 'Admin', 'action' => 'index/get')); ?>" />
<input type="hidden" id="table-editable-url" value="<?php echo $this->Html->url(array('controller' => 'Admin', 'action' => 'index/save')); ?>" />
<input type="hidden" id="table_delete_url" value="<?php echo $this->Html->url(array('controller' => 'Admin', 'action' => 'index/delete')); ?>" />
<input type="hidden" id="table-sub-load-url" value="<?php echo $this->Html->url(array('controller' => 'Admin', 'action' => 'index/sub-load')); ?>" />
<input type="hidden" id="table-sub-editable-url" value="<?php echo $this->Html->url(array('controller' => 'Admin', 'action' => 'index/sub-save')); ?>" />
<input type="hidden" id="table-sub_delete_url" value="<?php echo $this->Html->url(array('controller' => 'Admin', 'action' => 'index/sub-delete')); ?>" />


<script type="text/javascript">
    var modules = <?php echo json_encode($modules);?>;
</script>
<?php
    echo $this->Html->script('Scripts/admin/group.js');
?>